package dba

import "github.com/jmoiron/sqlx"

func GetPassword(db *sqlx.DB, id string, password *string) {
	db.Get(password,
		`select password from users where user_id = $1`, id)
} 

func InsertPassword(db *(sqlx.DB),id string){
	db.Exec(`insert into users(user_id,password) values($1,$2)`,id,id)
}

func DeletePassword(db *(sqlx.DB),id string){
	db.Exec(`delete from users where user_id = $1`,id)
}